package org.seefly.iprint.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/admin")
public class AdminPageController {

    /**
     * @Description (获取登陆页面)
     * @return 登陆页面视图
     */
    @RequestMapping("/login")
    public String adminLogin() {
        return "admin/login";
    }
    
    /**
     * @Description (管理员登陆后跳转到后台首页)
     * @return
     */
    @RequestMapping("/index")
    public String index() {
        return "admin/index";
    }
    
    /**
     * @Description (请求后台主页)
     * @return
     */
    @RequestMapping("/getMain")
    public String getMain(Model m) {
        return "admin/main";
    }
    
    /**
     * @Description (返回未打印订单)
     * @return
     */
    @RequestMapping("/unprintOrderPage")
    public String unprintOrder() {
        return "admin/unprintOrder";
    }
    
    /**
     * @Description (返回未支付订单)
     * @return
     */
    @RequestMapping("/unpaidOrderPage")
    public String unpaidOrders() {
        return "admin/unpaidOrder";
    }
    
    /**
     * @Description (返回已完成订单)
     * @return
     */
    @RequestMapping("/completedOrderPage")
    public String completedOrder() {
        return "admin/completedOrder";
    }
    
    /**
     * @Description (返回已完成订单)
     * @return
     */
    @RequestMapping("/queryOrderPage")
    public String queryOrder() {
        return "admin/queryOrder";
    }
    
    /**
     * 
     * @Description (获取doc价格页面)
     * @return
     */
    @RequestMapping("/docPricePage")
    public String getDocPricePage() {
        return "admin/docPrice";
    }
    
    /**
     * @Description (获取照片价格页面)
     * @return
     */
    @RequestMapping("/photoPricePage")
    public String getPhotoPricePage() {
        return "admin/photoPrice";
    }
    /**
     * @Description (获取证件照价格页面)
     * @return
     */
    @RequestMapping("/idphotoPricePage")
    public String getIdhotoPricePage() {
        return "admin/idphotoPrice";
    }
    /**
     * @Description (获取证件照价格页面)
     * @return
     */
    @RequestMapping("/leafletPricePage")
    public String getLeafletPricePage() {
        return "admin/leafletPrice";
    }
    
    @RequestMapping("/addInfoPage")
    public String getAddInfoPage() {
        return "admin/addInfo";
    }
    
    @RequestMapping("/infoListPage")
    public String getInfoListPage(Model m) {
        m.addAttribute("type", "helpinfo");
        return "admin/HelpInfo";
    }
    
    @RequestMapping("/adsListPage")
    public String getAdsListPage(Model m) {
        m.addAttribute("type", "adsinfo");
        return "admin/HelpInfo";
    }
    
}
